package com.demo.service.app.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.demo.service.app.pojo.Performer;
import com.demo.service.app.service.PerformerService;

@RestController
@RequestMapping("/performer")
public class PerformerController {
	
	@Autowired
	private PerformerService performerService;
	
	@RequestMapping("/add")
	public int add(@RequestBody Performer performer) {
		
		return performerService.add(performer);
	}

	@RequestMapping("/batchAdd")
	public void batchAdd() {
		performerService.batchAdd();
	}
}
